package com.example.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ml
 * @create 2017-07-07--15:25
 */
@RestController
public class IndexController {
    private final static Logger logger= LoggerFactory.getLogger(IndexController.class);

    @RequestMapping(value = "/index")
    public String index(){


        logger.debug("debuger");
        logger.info("访问了Index方法");
        logger.warn("warn方法");
        return "哈哈哈";
    }
}
